package com.lyh.miniostudy.service;


import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface MinioService {

    String upload(MultipartFile filePath) throws Exception;

    void download(HttpServletResponse response, String fileName);

    void delete(String file);

    boolean bucketExists(String bucketName) throws Exception;

    boolean fileExists(String fileName)  throws Exception;
}
